export const PAGE_CODE = 'dcs-sales-CBUSaleShipment';
import {PAGE} from '../constants';
import moment from 'moment';

export const lastWeek = [
    moment()
        .startOf('month').format('YYYY-MM-DD'),
    moment().endOf('day')
];
export const PERMISSION = {
    add: 'add',
    import: 'import',
    update: 'update',
    export: 'export',
    abandon: 'abandon',
    signned: 'signned',
    dateSupplement: 'datesupplement'
};
export const DEFAULT_QUERY_OPTION = {
    code: '',
    dealerId: '',
    brandId: '',
    saleConfirmationrCode: '',
    vin: '',
    partShipmentStatus: [],
    declarePlace: '',
    declareType: [],
    createTime: lastWeek,
    actualShipmentDate: lastWeek,
    pageIndex: PAGE.index,
    pageSize: PAGE.smallSize,
    sortField: '',
    isDesc: '',
};

